import Vue from 'vue';
import Vuex from 'vuex';

import loading from './module/loading/index';
import createAd from './module/create-adv/index';
import manager from './module/manager/index';
import advAssets from './module/adv-assets/index';
import upload  from './module/upload/index';
import statistics from './module/statistics/index';
import account from './module/account/index';
import platformUser from './module/platform-user/index';
import feedback from './module/feedback/index';
import VueLazyload from 'vue-lazyload';
import header from './module/header/index';

Vue.use(Vuex);
Vue.use(VueLazyload, {
  error: require('../assets/img/default.jpg'),
  loading: require('../assets/img/loading.gif'),
});
const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
    modules: {
        loading,
        upload,
        platformUser,
        statistics,
        advAssets,
        createAd,
        manager,
        account,
        feedback,
        header
    },
    strict: false
});